import request from '@/request';

type Params = {
    anid?: number;
    quit?: number;
    duration?: number;
    chaps?: number;
    rows?: number;
    event?: number;
};

// 退出事件
export async function eventQuit(data: Params) {
    return request.post<void>('api/event/quit', data);
}
// 浏览时长事件
export async function eventDuration(data: Params) {
    return request.post<void>('api/event/duration', data);
}
// 浏览时长事件
export async function eventHistory(data: Params) {
    return request.post<void>('api/event/readHistory', data);
}
// 用户事件
export async function eventUser(data: Params) {
    return request.post<void>('api/event/user', data);
}
